// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;
import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * CatalogProductBundleOptionValue generated by hbm2java
 */
@Entity
@Table(name = "catalog_product_bundle_option_value", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"option_id", "store_id" }))
public class CatalogProductBundleOptionValue implements java.io.Serializable {

	private Integer valueId;
	private CatalogProductBundleOption catalogProductBundleOption;
	private short storeId;
	private String title;

	public CatalogProductBundleOptionValue() {
	}

	public CatalogProductBundleOptionValue(
			CatalogProductBundleOption catalogProductBundleOption, short storeId) {
		this.catalogProductBundleOption = catalogProductBundleOption;
		this.storeId = storeId;
	}

	public CatalogProductBundleOptionValue(
			CatalogProductBundleOption catalogProductBundleOption,
			short storeId, String title) {
		this.catalogProductBundleOption = catalogProductBundleOption;
		this.storeId = storeId;
		this.title = title;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "value_id", unique = true, nullable = false)
	public Integer getValueId() {
		return this.valueId;
	}

	public void setValueId(Integer valueId) {
		this.valueId = valueId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "option_id", nullable = false)
	public CatalogProductBundleOption getCatalogProductBundleOption() {
		return this.catalogProductBundleOption;
	}

	public void setCatalogProductBundleOption(
			CatalogProductBundleOption catalogProductBundleOption) {
		this.catalogProductBundleOption = catalogProductBundleOption;
	}

	@Column(name = "store_id", nullable = false)
	public short getStoreId() {
		return this.storeId;
	}

	public void setStoreId(short storeId) {
		this.storeId = storeId;
	}

	@Column(name = "title")
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
